import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {DashboardComponent} from "./dashboard.component";
import {LoginComponent} from "../../shared/component/login/login.component";

export const dashboardRoutes: Routes = [
    {
        path: '',
        component: DashboardComponent,
        children: [
            {path: '', redirectTo: 'task', pathMatch: 'full'},
            {path: 'task', loadChildren: '../expert-risk/expert-riskboard.module#ExpertRiskBoardModule'},
            {path: 'plan', loadChildren: '../admin-risk/admin-riskboard.module#AdminRiskBoardModule'},
            {path: 'execution', loadChildren: '../risk-report/riskReportBoard.module#RiskReportBoardModule'},
            {path: 'report', loadChildren: '../risk-report/riskReportBoard.module#RiskReportBoardModule'},
            {path: 'aboutMe', loadChildren: '../about-me/about-me.module#AboutMeModule'}
        ]
    }
];

@NgModule({
  imports: [RouterModule.forChild(dashboardRoutes)],
  exports: [RouterModule]
})
export class DashBoardRoutes {
}
